const path = require('path');
const express = require('express');


//构建
const StudentRouter = express.Router();

//引入控制器
const StudentController = require(path.join(__dirname,"../controllers/StudentController"));


//主页面
StudentRouter.get('/studentList',StudentController.studentList);

//编辑
StudentRouter.get('/studentEdit',StudentController.studentEdit);

//提交
StudentRouter.post('/studentEdit',StudentController.studentEditForm);

// 账号删除页面
StudentRouter.get('/studentDelete',StudentController.studentDelete);



module.exports = StudentRouter;